package cn.hesion.dataStructures.Tree;

public class BineryTree {
    private TreeNode root;

    public void setRoot(TreeNode root) {
        this.root = root;
    }

    public void preOrder() {
        this.root.preOrder();
    }

    public TreeNode preOrderSearch(int no) {

        if (root != null) {
            return this.root.preOrderSearch(no);
        } else {
            return null;


        }

    }
}
